package com.suse.lhw.hms.exersiseserver.service;

import com.suse.lhw.hms.exersiseserver.domin.EMoventmodel;
import com.suse.lhw.hms.exersiseserver.domin.EUnit;
import com.suse.lhw.hms.exersiseserver.pojo.out.MovementModelAndUnits;

import java.util.List;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.hms.exersiseserver.service
 * @ClassName: EMoventmodelService
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2020/5/3 13:58
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/5/3 13:58
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public interface EMoventmodelService {


    int deleteByPrimaryKey(Integer id);

    int insert(EMoventmodel record);

    int insertSelective(EMoventmodel record);

    EMoventmodel selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(EMoventmodel record);

    int updateByPrimaryKey(EMoventmodel record);

    int addAMovenmentModelByStatus(EMoventmodel eMoventmodel, List<EUnit> list);

    int updateAMovenmentModelAndUnit(EMoventmodel eMoventmodel, List<EUnit> list);

    List<MovementModelAndUnits> selectAllModelByStatus(int defaultt);

    int excuteAMM(EUnit eUnit, EMoventmodel eMoventmodel, int quanlity, String userId);

    MovementModelAndUnits selectAModelById(int id);

    List<MovementModelAndUnits> selectCollectedByUseridType(String userId, int model);


    List<MovementModelAndUnits> selectAllByUseridAndStatusAndName(String userId, int un_upload, String s);

    int deleteByModelId(Integer movId);
}



